//
// Created by LiuYou on 2021/5/13.
//

#ifndef CPPSTANDARDLIBRARY_LINUX_TODO_HPP
#define CPPSTANDARDLIBRARY_LINUX_TODO_HPP


#include <string>
#include <ostream>


class Todo {
public:
    Todo();

    Todo(std::string todo, std::string where);

    virtual ~Todo();

    friend std::ostream& operator<<(std::ostream& os, const Todo& todo);

public:
    void setTodo(const std::string& todo);

    void setWhere(const std::string& where);

public:
    friend bool operator==(const Todo& lhs, const Todo& rhs);

    friend bool operator!=(const Todo& lhs, const Todo& rhs);

    friend bool operator<(const Todo& lhs, const Todo& rhs);

    friend bool operator>(const Todo& lhs, const Todo& rhs);

    friend bool operator<=(const Todo& lhs, const Todo& rhs);

    friend bool operator>=(const Todo& lhs, const Todo& rhs);

private:
    std::string todo;
    std::string where;
};


#endif //CPPSTANDARDLIBRARY_LINUX_TODO_HPP
